<li class="list-group-item d-flex justify-content-between align-items-center ">
  <div>
    <img src="{$user->avatar}" class="img-thumbnail" width="50px" alt="图片加载..." />
    <a href="{:url('User/read',['id'=>$user->id])}" class="text-decoration-none text-success">{$user->name}</a>
    <i class="fa fa-rss-square text-danger" ></i>
    <span class=" text-secondary">{$user->email}</span>
  </div>

  <?php if(isLogin()):?>
  <?php $login_user = loginUser(); ?>
  <?php if(isAdmin() && ($user->is_admin!=1) && ($login_user['id']!=$user->id)) :?>
  <form action="{:url('User/delete',['id' => $user->id])}" method="post" onsubmit="return confirm('您是否删除该用户？')">
    <input type="hidden" name="_method" value="DELETE"><!--    p8伪装-->

  </form>
  <?php endif; ?>
  <?php endif;?>
</li>